﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HistoryOrdersParser
{
    public class Order
    {
        public decimal OpenPrice { get; set; }
        public decimal ClosePrice { get; set; }
        public decimal Result { get; set; }

        public DateTime OpenDate { get; set; }
        public DateTime CloseDate { get; set; }

        public int OrderNumber { get; set; }
        public OrderType OrderDirection { get; set; }

        public override string ToString()
        {
            string toReturn = "";

            toReturn = String.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}", OrderDirection,OpenDate,OpenPrice,CloseDate,ClosePrice,Result);

            return toReturn;
        }
    }

    public enum OrderType
    { 
        buy,sell
    }
}
